/*
// TopicType.java - MQTT主题类型枚举，已注释以禁用MQTT功能
// 如需启用MQTT功能，请取消注释此文件

package com.cpems.system.domain.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * MQTT主题类型枚举
 * 定义了不同类型的MQTT主题及其对应的信息
 */
//@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TopicType {

    /**
     * 电压
     */
    ELECTRIC_U(0, "electric/voltage","电压"),

    /**
     * 电流
     */
    ELECTRIC_I(1, "electric/current","电流"),

    /**
     * 电功率
     */
    ELECTRIC_P(2, "electric/power","电功率"),

    /**
     * 用电量
     */
    ELECTRIC_W(3, "electric/consumption","用电量"),

    /**
     * 用水量
     */
    WATER_CONSUMPTION(4, "water/consumption","用水量");

    private final Integer code;
    private final String info;
    private final String desc;

    TopicType(Integer code, String info, String desc) {
        this.code = code;
        this.info = info;
        this.desc = desc;
    }
}
